import { Controller, Get } from "@nestjs/common";
import { ChartsService } from "./charts.service";

@Controller("charts")
export class ChartsController {
  constructor(private readonly chartsService: ChartsService) {}
  @Get()
  getAllChartData() {
    return this.chartsService.getAllChartData();
  }

  @Get("geoJSON")
  getGeoJSONData() {
    return this.chartsService.getGeoJSONData();
  }

  @Get("chinaData")
  getChinaData() {
    return this.chartsService.getChinaData();
  }
}
